home *** CD-ROM | disk | FTP | other *** search
/ Mac Format 2004 Junue - Disc 1 / MacFormat 143 CD1.iso / Revolution 2.0.1 demo / Revolution 2.0.1.sit / Revolution 2.0.1 / Sample Stacks / sample xml / circles3.xml < prev    next >
Extensible Markup Language  |  2003-05-21  |  1KB  |  24 lines

  1. <?xml version="1.0"?>
  2. <html xmlns="http://www.w3.org/1999/xhtml"
  3. xmlns:svg="http://www.w3.org/2000/svg" >
  4.   <head>
  5.     <style>
  6.       circle:hover {fill-opacity:0.8;}
  7.     </style>
  8.   </head>
  9.   <body>
  10.     <svg:svg>
  11.       <svg:g style="fill-opacity:0.3;">
  12.         <!-- svg:switch -->
  13.           <svg:foreignObject x="0" y="0" width="1000" height="1000" 
  14.                              requiredExtensions="http://www.mozilla.org/SVGExtensions/EmbeddedXHTML">
  15.             <img src="croc1.jpg" />
  16.           </svg:foreignObject>
  17.         <!-- /svg:switch -->
  18.         <svg:circle cx="6cm" cy="2cm" r="100" style="fill:red; stroke:none; stroke-width:0.01cm" transform="translate(0,50)" />
  19.         <svg:circle cx="6cm" cy="2cm" r="100" style="fill:blue; stroke:none; stroke-width:0.01cm" transform="translate(70,150)" />
  20.         <svg:circle cx="6cm" cy="2cm" r="100" style="fill:green; stroke:none; stroke-width:0.01cm" transform="translate(-70,150)"/>
  21.       </svg:g>
  22.     </svg:svg> 
  23.   </body>
  24. </html>